<#include "../../page.ftl" />
<#include "../../display.ftl" />
<table class="table table-datatable table-gray check_table">
    <thead>
    <tr>
        <th style="width: 35px;"><input id="checkAll" type="checkbox" value=""></th>
        <th>体检编号</th>
        <th>预约号</th>
    <#--<th>卡号</th>-->
        <th>客户姓名</th>
        <th>是否贵宾</th>
        <th>类型</th>
        <th>下单日期</th>
        <th>产品名称</th>
        <th>渠道来源</th>
        <th>体检金额</th>
        <th>实收金额</th>
        <th>成本</th>
        <th>来捡</th>
        <th>带检</th>
    <#--<th>分管</th>-->
        <th>收款方式</th>
        <th>收款金额</th>
        <th>免金额</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <#if ykTjsTable.rows??>
        <#list ykTjsTable.rows as ykTj>
        <tr>
            <td><input name="ids" type="checkbox" value="${ykTj.id?c}"></td>
            <td>${ykTj.tjId!''}</td>
            <td>${ykTj.bookId!''}</td>
        <#--<td>${ykTj.cardId!''}</td>-->
            <td>${ykTj.userName!''}</td>
            <td>${ykTj.spareA!''}</td>

            <td>
                <@display list=AKTypeList value="${ykTj.akType!''}"/>
            </td>
            <td>${ykTj.billTime!''}</td>

            <td>${ykTj.productName!''}</td>

            <td>
                <@display list=channelTypeList value="${ykTj.channelType!''}"/>
            </td>
            <td>${ykTj.tjMoney!''}</td>
            <td>${ykTj.ssMoney!''}</td>
            <td>${ykTj.cost!''}</td>
            <td>${ykTj.tjLj!''}</td>
            <td>${ykTj.tjDj!''}</td>
        <#--<td>${ykTj.tjFg!''}</td>-->
            <td>${ykTj.payment!''}</td>
            <td>${ykTj.sprice!''}</td>
            <td>${ykTj.spareB!''}</td>
            <td>
                <a class="btn btn-green btn-radio nopadding" onclick="return popAddOrModify(${ykTj.id?c});"
                   title="编辑"><i class="fa fa-edit"></i></a>
            <#if (ykTj.spareF)=='是'>
                <a class="btn btn-orange btn-radio nopadding" onclick="return dorefreshcardtype('${ykTj.bookId!''}');" title="查看"><i class="fa fa-file-text"></i></a>
            </#if>
            </td>
        </tr>
        </#list>
    </#if>
    <#if ykTjHj??>
    <tr style="background-color:greenyellow">
        <td></td>
        <td>合计</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td>${ykTjHj.tjMoney!''}</td>
        <td>${ykTjHj.ssMoney!''}</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
    </tr>

    </#if>
    </tbody>
</table>
<#if ykTjsTable??>
    <@page table=ykTjsTable formId="search_ykTj_table"/>
</#if>